package com.xbxkj.service.controller;


import com.xbxkj.fegin.bean.Evaluate;
import com.xbxkj.service.config.redis.RedisHelper;
import com.xbxkj.service.config.redis.RedisHelperImpl;
import com.xbxkj.service.service.EvaluateService;
import com.xbxkj.util.Respons.ResponseUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 评价 前端控制器
 * </p>
 *
 * @author 张子艺
 * @since 2019-07-17
 */
@Controller
@RequestMapping("/ApiRpc/evaluate")
public class EvaluateController {
    @Autowired
    EvaluateService evaluateService;
    @Autowired
    private RedisHelper redisHelper;

    @RequestMapping(value = "/list")
    @ResponseBody
    public Map list()       {
      return     ResponseUtil.getSuccessMap(evaluateService.myList());
    }
}
